JavaScript: Converts a specified number to an array of digits

welcome to shbcf.ru